<?php

return array(
	'install'=>"
		CREATE TABLE IF NOT EXISTS `w_m_article` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`cat_id` INT(11) NOT NULL,
	`title` VARCHAR(100) NOT NULL,
	`info` VARCHAR(250) NOT NULL,
	`img` VARCHAR(250) NOT NULL,
	`content` TEXT NOT NULL,
	`addtime` INT(11) NOT NULL,
	PRIMARY KEY (`id`)
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=1;

		
		CREATE TABLE IF NOT EXISTS `w_m_article_cat` (
	`id` INT(11) NOT NULL AUTO_INCREMENT,
	`name` VARCHAR(50) NOT NULL,
	`img` VARCHAR(250) NOT NULL,
	`info` TEXT NOT NULL,
	`parent_id` SMALLINT(6) NOT NULL DEFAULT '0',
	PRIMARY KEY (`id`)
)
COLLATE='utf8_general_ci'
ENGINE=InnoDB
AUTO_INCREMENT=2
;

	",
	'uninstall'=>"
		DROP TABLE IF EXISTS `w_m_article`;
		DROP TABLE IF EXISTS `w_m_article_cat`;
	"
);